package com.zengde.ai_sandbox.test.testthread.casnio;



public class DriverApplication {
    public static void main(String[] args) throws InterruptedException {
        Casnioer casnioer = new Casnioer();
        BetWinTask betWinTask=new BetWinTask(casnioer);
        BetLoseTask betLoseTask=new BetLoseTask(casnioer);

//        for(int i = 1; i < 3; i++){
            new Thread(betWinTask,"谭振雷"+1).start();
            new Thread(betWinTask,"姐夫"+2).start();
//        }
        new Thread(betLoseTask,"苏东方"+3).start();

        Thread.sleep(2000);

        //想让前面2个人赢钱，最后一个人输钱
//        System.out.println("casnioer.getBalance() = " + casnioer.getBalance());


    }
}
